<template>
  <div class="main-div indexPage">
    <!-- <div class="indexPage-header">
      <router-link class="indexPage-logo-link" to="/">
        <h1 class="sidebar-title">盘古BPM</h1>
      </router-link>
      <navbar class="indexPage-nav" />
    </div> -->
    <div class="indexPage-content">
      <!--        左侧导航-->
      <div class="indexPage-left">
        <div class="indexPage-menu">
          <template v-for="(item,parentIndex) in leftList">
            <div :key="parentIndex" class="indexPage-title">
              <i :class="item.icon" />
              <span class="indexPage-item-title">{{ item.title }}</span>
            </div>
            <div v-if="item.children.length>0" :key="parentIndex+99" class="indexPage-submenu">
              <div
                v-for="(child,index3) in item.children"
                :key="index3+'a'"
                class="indexPage-menu-item"
                @click="leftNavClick(child,item.children,index3,parentIndex)"
              >
                <i :class="child.icon" />
                <span class="indexPage-item-title">{{ child.title }}</span>
              </div>
            </div>
          </template>
        </div>
      </div>
      <!--中间内容区域 -->
      <div class="indexPage-center">
        <!--流程-->
        <div class="indexPage-card">
          <div class="indexPage-card_head">
            <div class="card_head_item is-active">流程</div>
          </div>
          <div class="indexPage-card_content" :class="{'padB':!isGoing}">
            <div v-if="isGoing" class="index_going empty_going" @click="isGoing=!isGoing">
              <span>提交流程...</span>
            </div>

            <div v-else class="going_flex">
              <div class="going_flex_label">
                常用流程
              </div>
              <div class="going_flex_list">
                <div class="going-close" @click="isGoing=!isGoing"><i class="el-icon-close" /></div>
                <div v-for="(item,index4) in goingList" :key="index4+'b'" class="going-item" @click="goingClick(item)">
                  <div class="going-item_icon">
                    <i class="icon" :class="item.icon" />
                  </div>
                  <p>{{ item.name }}</p>
                  <div v-if="(index4+1)%4 == 0" class="clearfix" />
                </div>
              </div>

            </div>

          </div>

        </div>

        <!--导航模块-->
        <div v-if="isNav" class="indexPage-card">
          <div class="indexPage-card_head box">
            <div
              v-for="(tab,index5) in boxTab"
              :key="index5+'c'"
              class="card_head_item "
              :class="{'is-active_box':tabIndex == index5}"
              @click="boxTabChange(index5,tab)"
            >{{ tab.title }}
            </div>
            <div class="card-right" />
          </div>
          <div class="indexPage-card_content box-flex">
            <div v-if="isShowTree" class="tree-left">
              <p>流程分类</p>
              <Tree :data="categoryData" expand="true" default-expand-all="true" @on-select-change="refresh" />

            </div>

            <indexcard class="box-content" :operate="operate" :type-key="typeKey" :refresh-task-data="refreshTaskData" />
          </div>
        </div>
        <!--          通知模块-->
        <div v-if="isRead" class="indexPage-card">
          <div class="indexPage-card_head box">
            <div
              v-for="(tab,index6) in thingsToReadTab"
              :key="index6+'d'"
              class="card_head_item "
              :class="{'is-active_box':thingsToReadTabIndex == index6}"
              @click="thingsToReadTabChange(index6,tab)"
            >{{ tab.title }}
            </div>
            <div class="card-right" />
          </div>
          <div class="indexPage-card_content box-flex">
            <readcard class="box-content" :operate="thingsToReadOperate" />
          </div>
        </div>
        <!--          我的事项-->
        <div v-if="isMyStart" class="indexPage-card">
          <div class="indexPage-card_head box">
            <div
              v-for="(tab,index7) in myStartTaskTab"
              :key="index7+'e'"
              class="card_head_item "
              :class="{'is-active_box':myStartTaskTabIndex == index7}"
              @click="myStartTaskTabTabChange(index7,tab)"
            >{{ tab.title }}
            </div>
            <div class="card-right" />
          </div>
          <div class="indexPage-card_content box-flex">
            <my-start-taskcard class="box-content" :operate="myStartTaskTabOperate" />
          </div>
        </div>

        <!--公告-->
        <div class="indexPage-card">
          <div class="indexPage-card_head">
            <div
              v-for="(tab,index8) in activeTab"
              :key="index8+'f'"
              class="card_head_item"
              :class="{'is-active':activeIndex == index8}"
              @click="activeHandle(index8)"
            >{{ tab }}
            </div>
          </div>
          <div class="indexPage-card_content">
            <div class="active-list">
              <div v-for="(item,index11) in activeList" :key="index11+'g'" class="active-item" @click="activeDialog(item)">
                <div class="active-text" @click="openMsgDialog(item)">{{ item.name }}</div>
                <div class="active-time">{{ item.time }}</div>
              </div>
            </div>
          </div>
          <div class="index-pagination">
            <el-pagination
              background
              layout="total,prev, pager, next"
              :total="activeListTotal"
            />
          </div>
        </div>

        <!--概括-->
        <div class="indexPage-card" style="display:none;">
          <div class="indexPage-card_head">
            <div class="card_head_item is-active">盘古BPM概况</div>
          </div>
          <div class="indexPage-card_content padB">
            <p class="introduction-title">盘古BPM介绍</p>
            <table class="index-table" border="1" cellspacing="0">
              <tr>
                <td>开发者</td>
                <td>盘古BPM</td>
              </tr>
              <tr>
                <td>盘古BPM-顾问</td>
                <td>手机号：17812259397（微信同号） 微信公众号:
                  <img class="td_img" src="../../assets/images/wx_qrcode.jpg">
                </td>
              </tr>
              <tr>
                <td>顾问QQ</td>
                <td>1515308</td>
              </tr>
              <tr>
                <td>在线文档</td>
                <td><a class="col_blue" href="#">文档</a></td>
              </tr>
              <tr>
                <td>官网</td>
                <td><a class="col_blue" href="#">官网</a></td>
              </tr>
            </table>

          </div>
        </div>

      </div>

      <!--        右侧留言区域-->
      <div class="indexPage-right">
        <div class="bindexPage-right_content">
          <p class="indexPage-right_title">冒个泡吧亲</p>
          <el-input v-model="speak" size="large" placeholder="说你想说的(60字以内)...">
            <el-button slot="append" type="primary" @click="addMessage()">冒泡</el-button>
          </el-input>
          <div class="message-list_title">最新冒泡</div>
          <div class="message-list">
            <div v-for="(item,index10) in messageList" :key="index10+'h'" class="message-item">
              <div class="message-item_label">
                <div v-if="!item.personImg" class="message-item_img">{{ item.name }}</div>
                <img v-else :src="item.personImg">
              </div>
              <div class="message-item_content">
                <div class="message-nameAndTime">
                  <span class="message-name">{{ item.name }}</span>
                  <div class="message-time">{{ item.time }}</div>
                </div>
                <div class="message-detail">{{ item.detail }}</div>
              </div>

            </div>
          </div>
        </div>
      </div>

    </div>

    <!--   流程弹窗   -->
    <!--    <el-dialog :title="goingTitle" fullscreen :visible.sync="dialogGoingVisible">-->
    <!--      <div class="goingDialog-box">-->
    <!--        <div class="goingDialog-head">-->
    <!--          <span class="fl">{{goingTitle}}</span>-->
    <!--          <span class="fr">-->
    <!--              <el-button type="primary"><i class="el-icon-setting"></i>启动</el-button>-->
    <!--              <el-button type="primary"><i class="el-icon-setting"></i>流程图</el-button>-->
    <!--            </span>-->
    <!--        </div>-->
    <!--        <div class="goingDialog-content">-->
    <!--          <el-form label-position="right" label-width="100px" :model="formDialog">-->
    <!--            <el-row :gutter="20">-->
    <!--              <el-col :span="12">-->
    <!--                <el-form-item label="名称">-->
    <!--                  <el-input v-model="formDialog.name"></el-input>-->
    <!--                </el-form-item>-->
    <!--              </el-col>-->
    <!--              <el-col :span="12">-->
    <!--                <el-form-item label="名称">-->
    <!--                  <el-input v-model="formDialog.name"></el-input>-->
    <!--                </el-form-item>-->
    <!--              </el-col>-->
    <!--              <el-col :span="12">-->
    <!--                <el-form-item label="名称">-->
    <!--                  <el-input v-model="formDialog.name"></el-input>-->
    <!--                </el-form-item>-->
    <!--              </el-col>-->
    <!--            </el-row>-->
    <!--          </el-form>-->
    <!--        </div>-->
    <!--      </div>-->

    <!--    </el-dialog>-->
    <el-dialog
      fullscreen
      :visible.sync="dialogGoingVisible"
      @close="closeDialog"
    >

      <div>
        <start :operate-model-key="modelKey" @closeEvent="closeEvent($event)" />
      </div>
    </el-dialog>

    <!--   公告弹窗   -->

    <el-dialog fullscreen :visible.sync="dialogMsgVisible">
      <div class="goingDialog-box">
        <div class="">
          <span class="fl">{{ goingTitle }}</span>
        </div>
        <div class="">
          <div class="news-info-body newsdynamic">
            <div class="title">{{ msgItem.name }}</div>
            <div class="subtitle"><span class="user">{{ msgItem.subTitle }}</span> <span class="action"><span
              calss="see"
            ><i class="fa fa-eye" /> 1        </span> </span></div>
            <div class="content" v-html="msgItem.content" />

          </div>
        </div>
      </div>

    </el-dialog>
    <el-dialog title="Or connect with" :visible.sync="showDialog">
      Can not be simulated on local, so please combine you own business simulation! ! !
      <br>
      <br>
      <br>
      <social-sign />
    </el-dialog>
    <Help />
  </div>

</template>

<script>
// import { Navbar } from './../../layout/components'
import indexcard from './components/indexcard.vue'
import readcard from './components/readcard.vue'
import myStartTaskcard from './components/myStartTaskcard.vue'
import start from '@/views/bpm/wfmodule/start'
import { getBpmnModelCategory } from '@/api/analy'
import { getTopic, getHomePortalList, senHomePortal, loadWfModule } from '@/api/index'
import Help from './components/help'

export default {
  name: 'IndexPage',
  components: {
    // Navbar,
    indexcard,
    readcard,
    myStartTaskcard,
    start,
    Help
  },
  data() {
    return {
      isCollapse: true,
      showDialog: false,
      formInline: {
        id: 1,
        page: 1,
        limit: 10
      },
      operate: 'ruTask',
      refreshTaskData: false,
      typeKey: '',
      thingsToReadOperate: 'thingsToRead',
      myStartTaskTabOperate: 'taskRun',
      leftList: [
        {
          title: '流程工作台', icon: 'el-icon-setting',
          children: [
            { title: '待我审批', icon: '', alias: 'ruTask', group: 'workFlow' },
            { title: '已办理', icon: '', alias: 'hisTask', group: 'workFlow' },
            { title: '我的转办', icon: '', alias: 'meTo', group: 'workFlow' },
            { title: '转办给我', icon: '', alias: 'toMe', group: 'workFlow' },
            { title: '已延时', icon: '', alias: 'taskDelayed', group: 'workFlow' }
          ]
        },
        {
          title: '阅读事项', icon: 'el-icon-setting',
          children: [
            { title: '待我阅读', icon: '', alias: 'ru', group: 'thingsToRead' },
            { title: '已阅', icon: '', alias: 'his', group: 'thingsToRead' }
          ]
        },
        {
          title: '申请任务事项', icon: 'el-icon-setting',
          children: [
            { title: '运行', icon: '', alias: 'taskRun', group: 'myStartTask' },
            { title: '办结', icon: '', alias: 'taskHis', group: 'myStartTask' }
          ]
        }
        // {title:'我的消息',icon:'el-icon-setting',
        //   children:[
        //     {title:'通知',icon:'',},
        //   ]
        // },

      ],
      messageList: [
        { name: '管理员', time: '2020-06-18 15:21:21', detail: 'hhsdfhshfdhsghf', personImg: '' },
        { name: '管理员', time: '2020-06-18 15:21:21', detail: 'hhsdfhshfdhsghf', personImg: '' },
        { name: '管理员', time: '2020-06-18 15:21:21', detail: 'hhsdfhshfdhsghf', personImg: '' }
      ],
      speak: '',
      isGoing: true,
      goingList: [
        { name: '请假申请', icon: 'el-icon-star-off' },
        { name: '请假申请申请', icon: 'el-icon-star-off' },
        { name: '请假申请', icon: 'el-icon-star-off' },
        { name: '请假申请', icon: 'el-icon-star-off' }
      ],
      activeListTotal: 0,
      activeList: [
        { name: '这是一条新公告1', time: '2020-1-1 10:19:18' },
        { name: '这是一条新公告2', time: '2020-1-1 10:19:18' },
        { name: '这是一条新公告3', time: '2020-1-1 10:19:18' },
        { name: '这是一条新公告4', time: '2020-1-1 10:19:18' }
      ],
      activeIndex: 0, // 默认第一个
      activeTab: ['公告', '通知', '新闻'],

      /* 流程弹窗*/
      goingTitle: '',
      modelKey: '',
      dialogGoingVisible: false,
      dialogMsgVisible: false,
      formDialog: {
        name: ''
      },
      msgItem: {},

      isNav: false,
      isRead: false,
      isMyStart: false,
      categoryData: [],
      defaultProps: {
        children: 'children',
        label: 'label'
      },
      tabIndex: 0,
      thingsToReadTabIndex: 0,
      myStartTaskTabIndex: 0,
      boxTab: [{ title: '待我审批', icon: '', alias: 'ruTask', group: 'workFlow' },
        { title: '已办理', icon: '', alias: 'hisTask', group: 'workFlow' },
        { title: '我的转办', icon: '', alias: 'meTo', group: 'workFlow' },
        { title: '转办给我', icon: '', alias: 'toMe', group: 'workFlow' },
        { title: '已延时', icon: '', alias: 'taskDelayed', group: 'workFlow' }],
      thingsToReadTab: [
        { title: '待我阅读', icon: '', alias: 'ru', group: 'thingsToRead' },
        { title: '已阅', icon: '', alias: 'his', group: 'thingsToRead' }
      ],
      myStartTaskTab: [
        { title: '运行', icon: '', alias: 'taskRun', group: 'myStartTask' },
        { title: '办结', icon: '', alias: 'taskHis', group: 'myStartTask' }
      ],
      isShowTree: false,

      isFull: false // 是否全屏

    }
  },
  mounted() {
  },
  created() {
    getBpmnModelCategory().then((response) => {
      this.categoryData = response.data
    })
    this.getTopic()
    this.getHomePortalList()
    this.loadWfModule()
  },
  methods: {
    closeEvent: function(data) {
      if (data) {
        this.dialogGoingVisible = false
      }
      this.refreshTaskData = true
    },

    closeDialog: function() {
      this.modelKey = ''
    },
    refresh(data) {
      if (data) {
        if (data[0]) {
          if (data[0].parentId === '-1') {
            this.typeKey = ''
          } else {
            this.typeKey = data[0].typeKey
          }
        } else {
          this.typeKey = ''
        }
      }
    },
    boxTabChange(index, item) {
      if (item.group) {
        if (item.group === 'workFlow') {
          this.operate = item.alias
        }
      }
      this.tabIndex = index
    },
    thingsToReadTabChange(index, item) {
      if (item.group) {
        if (item.group === 'thingsToRead') {
          this.thingsToReadOperate = item.alias
        }
      }
      this.thingsToReadTabIndex = index
    },
    myStartTaskTabTabChange(index, item) {
      if (item.group) {
        if (item.group === 'myStartTask') {
          this.myStartTaskTabOperate = item.alias
        }
      }
      this.myStartTaskTabIndex = index
    },
    leftNavClick(item, list, childIndex, parentIndex) {
      this.isGoing = true
      if (parentIndex === 0) {
        this.isShowTree = true
      } else {
        this.isShowTree = false
      }
      if (item.group === 'workFlow') {
        this.isNav = true
        this.tabIndex = childIndex
        this.operate = item.alias
        this.isMyStart = false
        this.isRead = false
        this.isNav = true
      } else if (item.group === 'thingsToRead') {
        this.thingsToReadTabIndex = childIndex
        this.thingsToReadOperate = item.alias
        this.isMyStart = false
        this.isRead = true
        this.isNav = false
      } else if (item.group === 'myStartTask') {
        this.myStartTaskTabIndex = childIndex
        this.myStartTaskTabOperate = item.alias
        this.isMyStart = true
        this.isRead = false
        this.isNav = false
      }
      this.typeKey = ''
    },
    handleNodeClick(data) {
    },
    //  流程点击
    goingClick(item) {
      this.modelKey = item.modelKey
      this.goingTitle = item.name
      this.dialogGoingVisible = true
      this.isNav = false
    },
    getTopic: function() {
      getTopic(this.formInline).then((response) => {
        if (response.code === 0) {
          var data = response.data
          data.forEach(item => {
            item.time = item.createTime
          })
          this.activeList = data
          this.activeListTotal = parseInt(response.count)
        }
      })
    },
    loadWfModule: function() {
      loadWfModule().then((response) => {
        if (response.code === 0) {
          var data = response.data
          data.forEach(item => {
            item.icon = item.iconClass
          })
          this.goingList = data
        }
      })
    },
    getHomePortalList: function() {
      getHomePortalList().then((response) => {
        if (response.code === 0) {
          var data = response.data
          data.forEach(item => {
            item.name = item.createUserName
            item.time = item.createTime
            item.detail = item.content
          })

          this.messageList = data
        }
      })
    },
    senHomePortal: function() {
      var data = { 'msg': this.speak }
      senHomePortal(data).then((response) => {
        if (response.code === 0) {
          this.getHomePortalList()
          this.speak = ''
        }
      })
    },
    activeHandle(index) {
      this.activeIndex = index
      this.formInline.id = index + 1
      this.getTopic()
    },
    // 点击显示弹窗
    activeDialog(item) {
      this.msgItem = item
      this.dialogMsgVisible = true
    },
    openMsgDialog(item) {

    },
    //  添加消息
    addMessage() {
      this.senHomePortal()
    }
  }
}
</script>

<style lang="scss" scoped>
  .dialogClass .el-dialog__body {
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-left: 20px;
    color: #606266;
    font-size: 14px;
  }
  .dialogClass .el-dialog__footer {
    text-align: right;
  }
  /*注意此样式不可以放在scope属性下面,否则样式不生效*/

  body, input, pre, select, textarea {
    font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
  }

  .el-dialog__title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 0 10px 0 20px;
    word-break: break-all;
    word-wrap: break-word;
    /* min-height: 50px; */
    line-height: 50px;
    background-color: #0DB3A6;
    font-size: 14px;
    color: #fff;
    z-index: 1;
  }

  .help_right {
    right: 0;
  }
  .el-image {
    position: relative;
    display: inline-block;
    overflow: hidden;
  }
  .logoUrl[data-v-520e2439] {
    -webkit-transform: scale(.8) translateX(0);
    transform: scale(.8) translateX(0);
    -webkit-transform-origin: 100% 100% 0;
    transform-origin: 100% 100% 0;
  }
  .help {
    width: 40px;
    height: auto;
    position: fixed;
    top: 300px;
    z-index: 9999;
    border-radius: 6px 0 0 6px;
    -webkit-transform-origin: 90% 0 0;
    transform-origin: 90% 0 0;
    -webkit-transition: all .15s ease;
    transition: all .15s ease;
  }

  .toggle_cont {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 252px;
    right: 0;
    z-index: 9999;
  }
  $color_default: #797979;
  $color_333: #333333;
  $color_blue: #2f6bcf;
  $color_white: #ffffff;
  $color_grey: grey;
  .indexPage {
    background: #f0f2f5;

    .indexPage-header {
      display: flex;
      align-items: center;
      position: fixed;
      width: 100%;
      left: 0px;
      top: 0px;
      z-index: 1999;

      .indexPage-logo-link {
        display: inline-block;
        width: 210px;
        height: 50px;
        line-height: 50px;
        background: #1f2d3d;
        color: #fff;
        text-align: center;

        .sidebar-title {
          font-size: 14px;
          font-weight: 600;
          font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
        }
      }

      .indexPage-nav {
        flex: 1;
      }
    }

    .scale-full {
      width: 1200px;
      position: fixed;
      height: calc(100% - 50px);
      z-index: 1998;
      top: 50px;
      left: 50%;
      margin-left: -600px;

      .indexPage-card {
        height: 100%;

        .indexPage-card_content {
          height: calc(100% - 40px);
        }
      }

      ::v-deep.box-list .box-list_content {
        height: calc(100% - 89px);
      }
    }

    /*首页内容部分*/
    .indexPage-content {
      width: 1200px;
      margin: 0px auto;
      // padding: 60px 0 10px;
      color: $color_default;
      display: flex;

      .indexPage-left {
        width: 220px;

        .indexPage-menu {
          background: #fff;
          font-size: 14px;

          .indexPage-title {
            height: 45px;
            line-height: 45px;
            padding-left: 15px;
            background: #f5f7fe;
            color: $color_blue;

            & i {
              font-size: 16px;
              width: 16px;
              display: inline-block;
            }
          }

          .indexPage-menu-item {
            height: 45px;
            line-height: 45px;
            padding-left: 15px;
            transition: 0.1s;
            cursor: pointer;

            & i {
              font-size: 16px;
              width: 16px;
              display: inline-block;
            }

            &:hover {
              background: #f5f7fe;
            }
          }
        }
      }

      .indexPage-center {
        flex: 1;
        margin: 0px 15px 0px 15px;

      }

      .indexPage-right {
        display: none;
        width: 310px;
        box-sizing: border-box;

        .bindexPage-right_content {
          padding: 20px;
          background: $color_white;
        }

        .indexPage-right_title {
          color: $color_blue;
          font-weight: bold;
          margin-bottom: 15px;
        }

        .message-list_title {
          color: $color_grey;
          font-weight: bold;
          margin: 20px 0;
        }

        .message-list {
          line-height: 1.7;

          .message-item {
            margin: 20px 0px;
            display: flex;
            align-items: flex-start;

            .message-item_label {
              width: 36px;
              height: 36px;
              margin-right: 5px;
              font-size: 0px;

              img {
                width: 36px;
                height: 36px;
                display: inline-block;
                border-radius: 36px;
              }

              .message-item_img {
                width: 36px;
                height: 36px;
                line-height: 36px;
                font-size: 14px;
                background: #efa544;
                text-align: center;
                border-radius: 36px;
                overflow: hidden;
                color: $color_white;
              }
            }

            .message-item_content {
              font-size: 12px;
              flex: 1;
              width: 100%;
              display: inline-grid;

              .message-nameAndTime {
                color: $color_grey;
                display: flex;

                .message-name {
                  display: inline-block;
                }

                .message-time {
                  flex: 1;
                  text-align: right;
                }
              }

              .message-detail {
                color: $color_default;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
            }
          }
        }
      }
    }

    .indexPage-card {
      background: $color_white;
      padding: 0px;

      .indexPage-card_head {
        /*line-height: 40px;*/
        position: relative;
        overflow: hidden;
        z-index: 1;
        margin: 0px 20px 0px 20px;

        &.box {
          .card_head_item {
            line-height: 30px;
            margin: 5px 0;
          }
        }

        &:after {
          position: absolute;
          content: '';
          width: 100%;
          height: 2px;
          background: #ddd;
          bottom: 0px;
          left: 0px;
        }

        .card_head_item {
          line-height: 40px;
          padding: 0px 20px;
          position: relative;
          transition: all 0.4s;
          float: left;
          z-index: 2;
          cursor: pointer;

          &:after {
            content: " ";
            position: absolute;
            bottom: 0;
            height: 2px;
            left: 50%;
            margin-left: -33%;
            width: 66%;
            background-color: transparent;
          }

          &.is-active:after {
            background-color: $color_blue;
          }

          &.is-active_box {
            border-radius: 5px;
            background-color: $color_blue;
            color: $color_white;
            margin: 5px 0;
            line-height: 30px;
          }
        }

        .card-right {
          float: right;
          font-size: 18px;
          margin-top: 5px;

          i {
            cursor: pointer;
          }
        }
      }

      .indexPage-card_content {
        padding: 0px 20px 0px 20px;

        &.padB {
          padding-bottom: 20px;
        }
      }

      .index-pagination {
        background: #f4f7fd;
        padding: 5px 20px;
      }

    }

    .indexPage-card + .indexPage-card {
      margin-top: 20px;
    }

    /*流程*/
    .index_going {
      /*无状态*/
      &.empty_going {
        padding: 40px 10px;
        font-size: 18px;
        font-weight: bold;
        color: $color_grey;
        cursor: pointer;
      }

    }

    .going_flex {
      display: flex;
      border: 1px solid #eee;

      .going_flex_label {
        background: #f5f7fe;
        color: $color_blue;
        font-size: 14px;
        font-weight: bold;
        padding: 15px;
      }

      .going_flex_list {
        flex: 1;
        position: relative;
        overflow: hidden;

        .going-close {
          width: 20px;
          height: 20px;
          font-size: 20px;
          color: $color_grey;
          position: absolute;
          cursor: pointer;
          right: 10px;
          top: 10px;
          z-index: 2;
        }

        .going-item {
          float: left;
          text-align: center;
          padding: 10px;
          box-sizing: border-box;
          width: 25%;

          .going-item_icon {
            width: 48px;
            height: 48px;
            background: #63abf6;
            border-radius: 12px;
            display: inline-block;
            box-sizing: border-box;
            padding: 9px;

            .icon {
              color: #63abf6;
              line-height: 30px;
              text-align: center;
              background: #fff;
              border-radius: 100%;
              font-size: 18px;
              width: 30px;
              height: 30px;
            }
          }
        }
      }
    }

    /*  新闻*/
    .news-info-body .title {
      font-size: 24px;
      text-align: center;
      padding: 10px;
      font-weight: 700;
      margin-top: 30px;
    }

    .news-info-body .subtitle {
      text-align: center;
      position: relative;
    }

    .news-info-body {
      width: 1250px;
      height: 100%;
      overflow: auto;
      background: #fff;
      position: absolute;
      top: 0;
      left: 50%;
      margin-left: -625px;
    }

    /*  公告*/
    .active-list {
      padding: 20px 10px;
      height: 200px;
      overflow-y: auto;

      .active-item {
        position: relative;
        padding-left: 20px;
        line-height: 28px;
        display: flex;
        font-size: 14px;
        color: $color_333;
        cursor: pointer;

        &:before {
          content: '';
          position: absolute;
          top: 50%;
          left: 10px;
          transform: translate(-50%, -50%);
          width: 6px;
          height: 6px;
          background: #d24d57;
          border-radius: 6px;
        }

        .active-text {
          flex: 1;
          width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .active-time {
          display: inline-block;
        }
      }
    }

    /*概括*/
    .introduction-title {
      text-align: center;
      font-size: 24px;
      color: $color_333;
      margin: 10px auto;
    }

    .index-table {
      color: #333;
      font-size: 13px;
      width: 100%;
      margin: 10px 0;
      box-sizing: border-box;

      tr {
        transition: all 0.2s;

        &:hover {
          background: #ededed;
        }

        td {
          &:first-child {
            width: 30%;
          }

          border: 1px solid #ddd;
          padding: 9px 15px;

          .td_img {
            display: inline-block;
            width: 40px;
            height: 40px;
          }

          .col_blue {
            color: $color_blue;
          }
        }
      }
    }

    /*模块*/
    .box-flex {
      display: flex;
      padding: 10px 20px 15px 20px !important;

      .tree-left {
        color: #333;
        width: 145px;
        border: 1px solid #e4e7ed;
        border-right-width: 0px;
        background: #f4f7fd;

        p {
          font-size: 16px;
          text-align: center;
          padding: 15px 0;
        }

        .el-tree {
          background: #f4f7fd;
        }
      }

      .box-content {
        flex: 1;
        border: 1px solid #e4e7ed;
      }
    }

    .goingDialog-box {
      box-sizing: border-box;
      border-radius: 10px;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
      background: $color_white;

      .goingDialog-head {
        padding: 8px 15px;
        color: #333;
        font-size: 18px;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
        overflow: hidden;
      }

      .goingDialog-content {
        padding: 20px 0px;
      }
    }
  }
</style>
